package com.gscitysfy.cus.drain.modules.duty.mapper;



import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gscitysfy.cus.drain.modules.duty.entity.MoperDutyMnExchange;
import com.gscitysfy.cus.drain.modules.duty.vo.MoperDutyMnExchangeVo;

import java.util.List;

/**
 * @author 葛守跃
 * @version 1.0.0
 * @ClassName MoperDutyMnExchangeMapper
 * @Description 接口
 * @creatTime 2022-04-07 15:20:40
 */
public interface MoperDutyMnExchangeMapper extends BaseMapper<MoperDutyMnExchange> {

    /**
     * 分页搜索换班、替班记录
     * @param page
     * @param exchange
     * @return
     */
    IPage<MoperDutyMnExchange> selectExchangeRecordsByCondition(Page<MoperDutyMnExchange> page, MoperDutyMnExchangeVo exchange);

    /**
     * 获取需要导出的记录
     * @param exchange
     * @return
     */
    List<MoperDutyMnExchange> getExportExchangeByCondition(MoperDutyMnExchangeVo exchange);


}
